<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<%String path=request.getContextPath(); %> 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>功能修改</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.tabfont01 {	
	font-family: "宋体";
	font-size: 9px;
	color: #555555;
	text-decoration: none;
	text-align: center;
}
.font051 {font-family: "宋体";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 20px;
}
.font201 {font-family: "宋体";
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
.button {
	font-family: "宋体";
	font-size: 14px;
	height: 37px;
}
html { overflow-x: auto; overflow-y: auto; border:0;} 
-->
</style>

<link href="../css/css.css" rel="stylesheet" type="text/css" />
<script type="text/JavaScript">

</script>
<link href="../css/style.css" rel="stylesheet" type="text/css" />
</head>
<SCRIPT language=JavaScript>
function sousuo(){
	window.open("gaojisousuo.htm","","depended=0,alwaysRaised=1,width=800,height=510,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
}
function selectAll(){
	var obj = document.fom.elements;
	for (var i=0;i<obj.length;i++){
		if (obj[i].name == "delid"){
			obj[i].checked = true;
		}
	}
}



  function link(){
document.getElementById("fom").action="";
document.getElementById("fom").submit();
} 

function del(){
	
	var flag=confirm("你确实要删除这个明细功能吗？")
	
	 if(flag){
	
	  
    return true;
    		 
   
	 
		
	 }
	return false;
}

function edit1(){
     window.location.href="<%=path%>/Functionlist/editfunction1?functionNum=${recorddetails.functionNum}"
	
}
 
</SCRIPT>

<body>
<form name="fom" id="fom" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">

  <tr>
    <td height="30">      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="62" background="../images/nav04.gif">
            
		   <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
		    <tr>
			  <td width="21">&nbsp;</td>
			  </tr>
          </table></td>
        </tr>
    </table></td></tr>
  <tr>
    <td><table id="subtree1" style="DISPLAY: " width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
         
              <tr>
                <td height="40" class="font42"><table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646" class="newfont03">

					  <tr>
                    <td height="20" colspan="4" align="center" bgcolor="#EEEEEE"class="tablestyle_title">
							<div align="center" style="font-size:16px">功能详细内容</div></td>
                    </tr>
                    
                  <tr>
				    <td width="16%" height="20" align="right" bgcolor="#FFFFFF">功能标题:</td>
                    <td width="76%" bgcolor="#FFFFFF">${requestScope.recorddetails.functionName}</td>
                    <td width="8%"  bgcolor="#FFFFFF" rowspan="7"><a onclick="edit1()">修改</a></td>
                     <%-- <td width="8%"  bgcolor="#FFFFFF" rowspan="7"><a href="<%=path%>/pages/xiugaifirst.jsp?functionNum=${requestScope.recorddetails.functionNum}&&functionName=${requestScope.recorddetails.functionName}
                     &&englishName=${requestScope.recorddetails.englishName}&&serverprice=${requestScope.recorddetails.serverprice}
                     &&serviceNote=${requestScope.recorddetails.serviceNote}&&
                     jyPrice=${requestScope.recorddetails.jyPrice}&&
                     jxjyPrice=${requestScope.recorddetails.jyPrice}
                     ">修改</a></td>  --%>
                  </tr>
                   <tr>
				    <td width="16%" height="20" align="right" bgcolor="#FFFFFF">功能英文标题:</td>
                    <td width="50%"  bgcolor="#FFFFFF">${requestScope.recorddetails.englishName}</td>
                  </tr>
                  <tr>
				    <td width="16%" height="20" align="right" bgcolor="#FFFFFF">服务价格:</td>
				    <td  bgcolor="#FFFFFF">${requestScope.recorddetails.serverprice}元起</td>
                   </tr>
                   <tr>
				     <td width="16%" height="20" align="right" bgcolor="#FFFFFF">服务说明:</td>
				    <td  bgcolor="#FFFFFF">${requestScope.recorddetails.serviceNote}</td>
                   </tr>
                    <tr>
				     <td width="16%" height="20" align="right" bgcolor="#FFFFFF">加印价格:</td>
				    <td  bgcolor="#FFFFFF">${requestScope.recorddetails.jyPrice}元</td>
                    </tr>
                  <tr>
                  <tr>
				     <td width="16%" height="20" align="right" bgcolor="#FFFFFF">加修加印价格:</td>
				    <td  bgcolor="#FFFFFF">${requestScope.recorddetails.jxjyPrice}</td>
                    </tr>
                  <tr>
                    <td height="20" align="right" bgcolor="#FFFFFF">产品简介INTRO:</td>
                    <td colspan="2" bgcolor="#FFFFFF"><a href="<%=path%>/Functionlist/selectintroduce?functionNum=${recorddetails.functionNum}">查看</a></td>
                  </tr>
                  
                  <tr>
				    <td height="20" align="right" bgcolor="#FFFFFF">服务详情ITEM DETAILS:</td>
				    <td colspan="2" bgcolor="#FFFFFF"><a href="<%=path%>/Functionlist/selectitemDetails?functionNum=${recorddetails.functionNum}">查看</a></td>
                  </tr>
                  
                  <c:forEach items="${requestScope.list2}" var="info">
                   <input id="idinput" value="${info.id}"  style="display:none">  
                   <tr>
				    <td height="20" align="right" bgcolor="#FFFFFF" ><b>明细功能:</b></td>
				    <td  bgcolor="#FFFFFF">名称：${info.name},价格：${info.price}元,所需预付价格：${info.prepayPrice} , 
				适合人数:<c:choose>
				         <c:when test="${info.fitnum==1}">
				         1人
				         </c:when>
				         <c:when test="${info.fitnum==2}">
				         2-3人
				         </c:when>
				         <c:when test="${info.     fitnum==4}">
				         4-5人
				         </c:when>
				         <c:when test="${info.fitnum==6}">
				         5人以上
				         </c:when>
				</c:choose>
				          <%--    适合人数:<c:if test="${info.fitnum}==1">1人</c:if>
				    <c:if test="${info.fitnum}==2">2-3人</c:if> 
				    <c:if test="${info.fitnum}==6">5人以上</c:if>  --%>
				    </td>
				 
				 
				    <td  bgcolor="#FFFFFF"><a href="<%=path%>/Functionlist/editdetails2?id=${info.id}">修改</a>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
				    &nbsp&nbsp&nbsp<a   href="<%=path%>/Functionlist/deletedetaillist?id=${info.id}" onclick="return del()">删除</a></td>
				   
				    <!-- <td  bgcolor="#FFFFFF"><a href="#">修改</a></td>  -->
                  </tr>
                  </c:forEach>
                 <!--   <tr>
				    <td height="20" align="right" bgcolor="#FFFFFF">明细功能:</td> 
				    <td  bgcolor="#FFFFFF">名称：XXX，价格：XXX元</td>
				    <td  bgcolor="#FFFFFF"><a href="#">修改</a></td>
				   
                  </tr>
                  
                   <tr>
				    <td height="20" align="right" bgcolor="#FFFFFF">明细功能:</td>
				   <td bgcolor="#FFFFFF">名称：XXX，价格：XXX元</td>
				   <td  bgcolor="#FFFFFF"><a href="#">修改</a></td>
				  
                  </tr> -->
                  
                  
                </table></td>
              </tr>
            </table></td>
            
        </tr>
      </table>
      <br>
            &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
              <a href="<%=path%>/Functionlist/add1?functionNum=${recorddetails.functionNum}">添加明细功能</a>
     </td>
  </tr>
</table>
</form>
</body>
</html>
